From e5af4d543a26da24d389aa80a1111ad49100c3fd Mon Sep 17 00:00:00 2001 From: Roman Lebedev Date: Fri, 19 Aug 2016 20:05:17 +0300 Subject: [PATCH] extensions: gggl: conv_rgb8_rgba8(): use 255UL, not 255 Fixes: gggl.c:758:62: runtime error: left shift of 255 by 24 places cannot be represented in type 'int' --- extensions/gggl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/gggl.c b/extensions/gggl.c index 7ab4400..c4b8ce4 100644 --- a/extensions/gggl.c +++ b/extensions/gggl.c @@ -755,7 +755,7 @@ conv_rgb8_rgba8 (unsigned char *src, unsigned char *dst, long samples) long n = samples-1; while (n--) { - *(unsigned int *) dst = (*(unsigned int *) src) | (255 << 24); + *(unsigned int *) dst = (*(unsigned int *) src) | (255UL << 24); src += 3; dst += 4; } -- 2.30.2